package com.czk.springcloud;

import com.czk.myrule.MyselfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/16 20:22
 */
@SpringBootApplication
@EnableEurekaClient
// 告诉客户端使用自己所选择的算法 RestTemplate上加入了@LoadBalanced才有效，此时表示使用ribbon提供的算法
//@RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = MyselfRule.class)
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class, args);
    }
}
